package com.example.activitylanchmode;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class MainActivity extends BaseActivity {

    String TAG =this.getClass().getName();
    Context mContext =this;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.tv_standard_launch).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mContext.startActivity(new Intent(mContext,MainActivity.class));
            }
        });

        findViewById(R.id.tv_single_top_launch).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mContext.startActivity(new Intent(mContext,SingleTopActivity.class));
            }
        });
         findViewById(R.id.tv_single_task_launch).setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 mContext.startActivity(new Intent(mContext,SingleTaskActivity.class));
             }
         });
        findViewById(R.id.tv_single_instance_launch).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mContext.startActivity(new Intent(mContext,SingleInstanceActivity.class));
            }
        });
        findViewById(R.id.tv_standard_instance_launch).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.d("BaseActivity","tv_standard_instance_launch");
                Intent intent =new Intent(mContext,StandardActivity.class);
                //intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                mContext.startActivity(intent);
            }
        });
    }




}
